package com.shiwaixiangcun.customer.pay

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.tencent.mm.opensdk.openapi.WXAPIFactory

/**
 *
 * @author Administrator
 * @date 2017/9/22
 */

class AppRegister : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        Log.d("注册微信", "注册微信支付")

        val api = WXAPIFactory.createWXAPI(context, null)
        api.registerApp("wx4811bcb64cb3e434")
    }
}
